<%--
  Created by IntelliJ IDEA.
  User: songf
  Date: 2022/12/14
  Time: 20:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html style="overflow-x:auto;overflow-y:auto;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>系统参数管理 - Powered By 众阳集团</title>
    <meta name="author" content="http://his.com/">
    <meta name="renderer" content="webkit"><meta http-equiv="X-UA-Compatible" content="IE=8,IE=9,IE=10">
    <meta http-equiv="Expires" content="0"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Cache-Control" content="no-store">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/hm.js.下载"></script><script src="${pageContext.request.contextPath}/BingAn/病案首页_files/jquery-1.8.3.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/bootstrap.min.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/bootstrap.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/font-awesome.min.css" type="text/css" rel="stylesheet">
    <!--[if lte IE 7]><link href="/HIS/static/bootstrap/2.3.1/awesome/font-awesome-ie7.min.css" type="text/css" rel="stylesheet" /><![endif]-->
    <!--[if lte IE 6]><link href="/HIS/static/bootstrap/bsie/css/bootstrap-ie6.min.css" type="text/css" rel="stylesheet" />
    <script src="/HIS/static/bootstrap/bsie/js/bootstrap-ie.min.js" type="text/javascript"></script><![endif]-->
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/select2.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/select2.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/jquery.validate.min.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/jquery.validate.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/jbox.min.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/jquery.jBox-2.3.min.js.下载" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/WdatePicker.js.下载" type="text/javascript"></script><link href="${pageContext.request.contextPath}/BingAn/病案首页_files/WdatePicker.css" rel="stylesheet" type="text/css">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/mustache.min.js.下载" type="text/javascript"></script>
    <link href="${pageContext.request.contextPath}/BingAn/病案首页_files/his.css" type="text/css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/BingAn/病案首页_files/his.js.下载" type="text/javascript"></script>
    <script type="text/javascript">var ctx = '/HIS/a', ctxStatic='/HIS/static';</script>
    <!-- Baidu tongji analytics --><script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="//hm.baidu.com/hm.js?82116c626a8d504a5c0675073362ef6f";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>


    <meta name="decorator" content="default">
    <script type="text/javascript">
        $(document).ready(function() {
            $("#btnExport").click(function(){
                top.$.jBox.confirm("确认要导出用户数据吗？","系统提示",function(v,h,f){
                    if(v=="ok"){
                        $("#searchForm").attr("action","/HIS/a/sys/user/export");
                        $("#searchForm").submit();
                    }
                },{buttonsFocus:1});
                top.$('.jbox-body .jbox-icon').css('top','55px');
            });
            $("#btnImport").click(function(){
                $.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true},
                    bottomText:"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"});
            });
        });
        /*这里传pn值*/
        function gotoPage(pn){
            if(null != pn && pn!=''){
                document.form4.action="<%=basePath%>BingAnController?pn="+pn;
            }
            document.form4.submit();
        }
    </script>

</head>
<body><i id="btnMenu" class="icon-th-list" style="cursor:pointer;float:right;margin:10px;"></i><div id="menuContent"></div>

<div id="importBox" class="hide">
    <form id="importForm" action="http://localhost:8088/HIS/a/sys/user/import" method="post" enctype="multipart/form-data" class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading(&#39;正在导入，请稍等...&#39;);"><br>
        <input id="uploadFile" name="file" type="file" style="width:330px"><br><br>　　
        <input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   ">
        <a href="http://localhost:8088/HIS/a/sys/user/import/template">下载模板</a>
    </form>
</div>
<ul class="nav nav-tabs">
    <li class="active"><a href="http://localhost:8088/HIS/a/med/firstPage/">病案首页</a><!--闪电-->
    </li><li><a href="<%=basePath%>BingAnInitInsertController">添加</a><!--闪电-->
</li></ul>
<form id="searchForm" name="form4" class="breadcrumb form-search " action="<%=basePath%>BingAnController" method="post">
    <input id="pageNo" name="pageNo" type="hidden" value="1">
    <input id="pageSize" name="pageSize" type="hidden" value="30">



    <input id="orderBy" name="orderBy" type="hidden" value="">

    <script type="text/javascript">
        $(document).ready(function() {
            var orderBy = $("#orderBy").val().split(" ");
            $(".sort-column").each(function(){
                if ($(this).hasClass(orderBy[0])){
                    orderBy[1] = orderBy[1]&&orderBy[1].toUpperCase()=="DESC"?"down":"up";
                    $(this).html($(this).html()+" <i class=\"icon icon-arrow-"+orderBy[1]+"\"></i>");
                }
            });
            $(".sort-column").click(function(){
                var order = $(this).attr("class").split(" ");
                var sort = $("#orderBy").val().split(" ");
                for(var i=0; i<order.length; i++){
                    if (order[i] == "sort-column"){order = order[i+1]; break;}
                }
                if (order == sort[0]){
                    sort = (sort[1]&&sort[1].toUpperCase()=="DESC"?"ASC":"DESC");
                    $("#orderBy").val(order+" DESC"!=order+" "+sort?"":order+" "+sort);
                }else{
                    $("#orderBy").val(order+" ASC");
                }
                page();
            });
        });
    </script>

    <li><label>病案号：</label><input id="FgNum" name="FgNum" type="text" maxlength="50" class="input-mini" value="${patientid}" style="width:150px">
        &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" onclick="return page()">
    </li>



<script type="text/javascript">top.$.jBox.closeTip();</script>

<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr><th>病案号</th><th>第几次入院</th><th>姓名</th><th>性别</th><th>出生日期</th><th>婚姻状况</th><th>职业</th><th>籍贯</th><th>国籍</th><th>身份证号</th>
        <th>工作单位或地址</th><th>本人电话</th></tr></thead>

    <tbody>

    <c:forEach items="${pageInfo.list}" var="Bing">
        <tr>
            <td>${Bing.patientid}</td>
            <td>${Bing.timeid}</td>
            <td>${Bing.name}</td>
            <td>${Bing.sex}</td>
            <td>${Bing.borndate}</td>
            <td>${Bing.marriage}</td>
            <td>${Bing.profession}</td>
            <td>${Bing.jiguan}</td>
            <td>${Bing.nation}</td>
            <td>${Bing.credit}</td>
            <td>${Bing.address}</td>
            <td>${Bing.tel}</td>
            <td>
                <a href="<%=basePath%>BingAnFindByIdController?id=${Bing.patientid}" onclick="">修改</a>
                <a href="<%=basePath%>BingAnDeleteController?id=${Bing.patientid}" onclick="return confirmx(&#39;确认要删除吗？&#39;, this.href)">删除</a>

            </td>
        </tr>
    </c:forEach>


    </tbody>
</table>
    <div id="pagination" style="align:right;margin-top:-10px;">
        <div id='project_pagination' class="pagination pagination-centered">
            <div class="pagination">
                <ul>
                    <li><a href="javascript:void(0);" onclick="gotoPage(1)">首页</a></li>
                    <li><a href="javascript:void(0);" onclick="gotoPage(${pageInfo.pageNum-1})">上一页</a></li>
                    <li><a href="javascript:void(0);" onclick="gotoPage(${pageInfo.pageNum+1})">下一页</a></li>
                    <li><a href="javascript:void(0);" onclick="gotoPage(${pageInfo.pages})">尾页</a></li>
                </ul>
                <ul>
                    <li><span>共&nbsp;&nbsp;${pageInfo.total} 条记录&nbsp;&nbsp;</span></li>
                    <li><span>当前显示第&nbsp;${pageInfo.pageNum }&nbsp;页</span></li>
                </ul>
            </div>
        </div>
    </div>
    <div style="clear:both;"></div></div>

<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。
if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
    $("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
    $("#btnMenu").click(function(){
        top.$.jBox('get:/HIS/a/sys/menu/treeselect;JSESSIONID=b76db49f0a694ea384a2352cca11ba1c', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
        //if ($("#menuContent").html()==""){$.get("/HIS/a/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
    });
}//-->
</script>
</form>
</body></html>
